<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<%@ taglib uri="/WEB-INF/struts-bean" 	prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic" 	prefix="logic" %>

<%@ page contentType="text/html;" pageEncoding="utf-8" %>

<%@ page import="com.ttl.bc.stock.request2.bean.BCStkIssue2,
				 com.ttl.bc.stock.request2.bean.BCStkIssueSub2,
				 com.ttl.bc.stock.request2.bean.BCStkIssue2ShowBean" %>
<%@ page import="com.demo.displaytag.*" %>
				 
<html>	
<head>
	<title></title>
	<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/css/displaytagold.css" />
	<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/css/stkissue2.css" />	
</head>			 
<body bgcolor="#ffffff">

<center>
<div id="tblShow" >
<display:table name="${stkIssue2Data}" pagesize="10" requestURI="">
	<display:column property="docNo"  />
	<display:column property="docDate" />
	<display:column property="myDescription" />
</display:table>
</div>	
</center>

<div id="tblShow2">
<center>
<table border="1" bordercolor="#FF00FF">
	<caption>รายการ บันทึก พ.1</caption>
	<logic:notEmpty name="stkIssue2Data">
		<thead>
			<tr>
				<th align="center" width="50">ลำดับ</th>
				<th align="center" width="140">เลขที่เอกสาร</th>
				<th align="center" width="100">วันที่ทำรายการ</th>
				<th align="center" width="200">หมายเหตุ</th>
				<th align="center" width="80">สถานะ</th>
			</tr>
		</thead>
		<logic:iterate id="stkIssue2" name="stkIssue2Data" indexId="i">
		<tbody>
			<tr >
				<td align="center">${i+1 }.</td>
				<td align="center"><bean:write name="stkIssue2" property="docNo" /></td>
				<td align="center">${stkIssue2.docDate }</td>								
				<td align="left">${stkIssue2.myDescription }</td>
				<td align="center">รอเบิก</td>
				<td><a href='/ittl/StkReq.do?mode=edit&docNo=${stkIssue2.docNo }' >Edit</a></td>
				<td><a href='/ittl/Report.do?mode=printStockRequest&docNo=${stkIssue2.docNo }' target="_blank">Print</a></td>										
			</tr>
		</tbody>
		</logic:iterate>

	</logic:notEmpty>		
</table>
</center>

</div>
</body>
</html>